home *** CD-ROM | disk | FTP | other *** search
/ Interactive Media Design Review 1999 / Interactive Media Design Review 1999.iso / mac / files / ID99MENU.DIR / 00001_Script_1 next >
Text File  |  1999-04-29  |  6KB  |  227 lines

  1. global learnedsizes,screenshotloc,screenshotwidth,screenshotheight,firstthumbnail,dots
  2. global jurorcomments,firstjuror,firstjurorhilite,firsttitle,firstbio,biogrid,creditsgrid
  3. global rollstep,rollvolume,bgmusic,jurorspeaking,firstjurorzoom,globalidvolume,goldbox
  4. global firstbigjuror,firstnamejuror,viewby,webpages,demos,currtitle,pathdel,demofolder
  5. global talkaboutbronze,idcdpath,cdpath,shownqmessage,titlewidth,titleheight,qmessage
  6.  
  7. on preparemovie
  8.   set the idleLoadMode = 3
  9.   if voidp(idcdpath) then checkforproblems
  10.   talkaboutbronze = the optiondown
  11.   repeat with a = 1 to 1000
  12.     set the visible of sprite a to true
  13.   end repeat
  14.   if the platform contains "windows" then
  15.     pathdel = "\"
  16.   else
  17.     pathdel = ":"
  18.   end if
  19.   demofolder = idcdpath & "allfiles" & pathdel
  20.   if voidp(bgmusic) then bgmusic = demofolder&"bgmusic.aif"
  21.   titlewidth = 177
  22.   titleheight = 10
  23.   learnedsizes = false
  24.   screenshotloc = point(282, 162)
  25.   screenshotwidth = 267
  26.   screenshotheight = 217
  27.   firstthumbnail = 11
  28.   dots = 201
  29.   jurorcomments = value(field "juror comments")
  30.   webpages = value(field "web pages")
  31.   demos = value(field "demo files")
  32.   firstjuror = 161
  33.   firstjurorhilite = 171
  34.   firstbio = 181
  35.   firstbigjuror = 201
  36.   firstnamejuror = 211
  37.   firsttitle = 111
  38.   biogrid = 158
  39.   creditsgrid = 60
  40.   rollstep = 16
  41.   rollvolume = 0
  42.   goldbox = 54
  43.   qmessage = 303
  44.   jurorspeaking = 0
  45.   firstjurorzoom = 191
  46.   globalidvolume = 200
  47.   set the volume of sound 1 to globalidvolume
  48.   if voidp(currtitle) then set currtitle = 0
  49.   if voidp(viewby) then set viewby = "title"
  50.   repeat with a = 1 to 10
  51.     sound stop a
  52.   end repeat
  53. end
  54.  
  55. on startmovie
  56.   if the shiftdown then go "intro animation"
  57. end
  58.  
  59. on stopjuror
  60.   sound stop 4
  61. end
  62.  
  63. on mouseup
  64.   if the frame >= label("intro animation") then go 1
  65. end
  66.  
  67. on godemo thedemo
  68.   if thedemo = "" then exit
  69.   oldid = the itemdelimiter
  70.   set the itemdelimiter to ":"
  71.   foldername = item 1 of thedemo
  72.   demoname = item 2 of thedemo
  73.   set the itemdelimiter to oldid
  74.   wheredemois = demofolder&foldername
  75.   set the searchpaths = [wheredemois]
  76.   set the visible of sprite qmessage to not (shownqmessage=true)
  77.   go "to demo"
  78.   repeat with a = 1 to 1000
  79.     set the visible of sprite a to true
  80.   end repeat
  81.   repeat with a = 1 to 10
  82.     sound stop a
  83.   end repeat
  84.   repeat with a = 1 to 10
  85.     set the volume of sound a to 255
  86.   end repeat
  87.   starttimer
  88.   if not (shownqmessage=true) then
  89.     repeat while the timer < 120
  90.       updatestage
  91.     end repeat
  92.   end if
  93.   shownqmessage = true
  94.   play movie demoname
  95. end
  96.  
  97. on enterframe
  98.   if not soundbusy(1) then
  99.     sound playfile 1,bgmusic
  100.     bgmusic = demofolder&"bgmusic.aif"
  101.   end if
  102. end 
  103.  
  104. on startbgmusic
  105.   bgmusic = demofolder&"bgmusic.aif"
  106.   sound playfile 1,bgmusic
  107. end
  108.  
  109. on keydown
  110.   if "0123456789" contains the key then
  111.     globalidvolume = 27 * value(the key)
  112.   end if
  113.   if the key = "q" and the commanddown then
  114.     set the exitlock = false
  115.     go "get out"
  116.   end if
  117. end
  118.  
  119. on settextrender
  120.   repeat with a = 1 to 1000
  121.     if the type of member a = #text then
  122.       set the savebitmap of member a to true
  123.       set the prerender of member a to #copyink
  124.     end if
  125.   end repeat
  126. end
  127.  
  128. on redesign
  129.   repeat with a = 621 to 663
  130.     w = the number of words in the name of member a
  131.     bwmember = word (w-1) of the name of member a
  132.     put "titlecredit"&&string(a-620) into bwmember
  133.     set the name of member a to bwmember
  134.   end repeat
  135. end
  136.  
  137. on recolor
  138.   repeat with a = 531 to 573
  139.     bwmember = the name of member a
  140.     put "titlecredit"&&string(a-530) into bwmember
  141.     set the name of member a to bwmember
  142.   end repeat
  143. end
  144.  
  145. on randomj
  146.   j = []
  147.   repeat with a = 1 to 43
  148.     i = [random(3),random(4,6)]
  149.     append j,i
  150.   end repeat
  151.   return j
  152. end
  153.  
  154. on settextcolors
  155.   repeat with a = 235 to 277
  156.     set the forecolor of member a to 0
  157.     set the backcolor of member a to 255
  158.   end repeat
  159. end
  160.  
  161. on blastoff thesprite
  162.   repeat with a = 1 to 30
  163.     set the loc of sprite (dots+a-1) to point(10000,10000)
  164.   end repeat
  165.   updatestage
  166.   themember = the membernum of sprite thesprite
  167.   cropper themember,the number of member "dot 1",15,2
  168.   repeat with a = 1 to 30
  169.     set the loc of sprite (dots+a) to the loc of sprite thesprite
  170.   end repeat
  171.   sendallsprites #titlefly
  172. end
  173.  
  174. on cropper mastercaster,firstcast,thecols,therows
  175.   idots = firstcast
  176.   cols = thecols
  177.   rows = therows
  178.   widthgap = integer(.5+float(the width of member mastercaster)/cols)
  179.   heightgap = integer(.5+float(the height of member mastercaster)/rows)
  180.   repeat with a = 1 to rows*cols
  181.     dotmember = idots+a-1
  182.     set the picture of member dotmember to the picture of member mastercaster
  183.     crop(member dotmember,rect(((a mod cols)-1)*widthgap,(a/cols)*heightgap,((a mod cols)-1)*widthgap+widthgap,(a/cols)*heightgap+heightgap))
  184.   end repeat
  185. end
  186.  
  187. on Mac
  188.   return not(the platform contains "windows")
  189. end
  190.  
  191. on checkforproblems
  192.   set the itemdelimiter to ","
  193.   if Mac() then
  194.     put field "Mac CD Name" into CDName
  195.     put CDName & ":ID99CHK:" into it
  196.     put getNthFileNameInFolder(it,1) into it
  197.     if it = "" then
  198.       put true into discproblem
  199.     else
  200.       set the searchpaths to [CDName, CDName & ":ALLFILES"]
  201.       set IDCDPath= CDName&":"
  202.     end if
  203.   else
  204.     put the moviepath&"ID99CHK\" into here
  205.     if getNthFileNameInFolder(here,1) <> "" then
  206.       put the moviepath into IDCDPath
  207.     else
  208.       if voidp(CDPath) then set CDPath = ""
  209.       put char 1 of CDPath & "defghijklmnopqrstuvwxyz!" into theletters
  210.       repeat with a = 1 to (the number of chars in theletters)
  211.         put char a of theletters into driveletter
  212.         if driveletter = "!" then exit repeat
  213.         put driveletter&":\ID99CHK\" into it
  214.         put getNthFileNameInFolder(it,1) into it
  215.         if it <> "" then exit repeat
  216.       end repeat
  217.       if driveletter = "!" then
  218.         put true into discproblem
  219.       else
  220.         put "" into lowram
  221.         set the searchpaths to [driveletter&":\ALLFILES\"]
  222.         set IDCDPath= driveletter&":\" 
  223.       end if
  224.     end if
  225.   end if
  226. end
  227.